﻿@{
    Layout = null;
}

<div style="clear:both"  id="container">
<div class="heading-buttons">


    <div class="col-xs-12 col-sm-7 col-md-7 col-lg-4">
        <h1 class="page-title txt-color-blueDark"><i class="fa  fa-gear "></i>
            部门管理
			
        </h1>
    </div>
    <div class="buttons pull-right">

        <button type="button" class="btn btn-success btn-labeled " id="btnSyspartAdd"
            data-bind="click: $root.AddNewNode">
            <span class="btn-label"><i class="glyphicon glyphicon-plus"></i>
            </span>添加结点</button>

        <button type="button" class="btn btn-primary btn-labeled " id="btnSyspartDel"
            data-bind="click: $root.DelNode">
            <span class="btn-label"><i class="glyphicon glyphicon-remove"></i>
            </span>删除结点</button>


    </div>
    <div style="clear: both;">
    </div>
</div>
<!--/Operation-->


<hr class="separator" />
<!-- Bread crumb is created dynamically -->



<div class="row">

    <div class="col-sm-4" style="margin-bottom: 5px; margin-top: 5px;">
        <div class="well well-light well-sm no-margin no-padding treeContent"style="min-height:350px;">
            <!--Syspart tree-->
            <ul id="SyspartTree" class="ztree">
            </ul>


        </div>

    </div>
    <!-- end col-sm-61 -->
    <!--/Syspart tree-->







    <!--Syspart  information-->
    <div class="col-sm-8" style="margin-bottom: 5px; margin-top: 5px;">
        <div class="well well-light well-sm no-margin no-padding treeContent" style="min-height:350px;">
            <input type="hidden" id="hidId" />
            <form class="form-horizontal" id="frmSyspart" data-bind="with: NodeValue;">

                <fieldset>
                    <div class="row" style="border-bottom: dashed 1px; margin-bottom: 10px;margin-left:1.5%;margin-right:0.5%;">
                        <h3 style="padding: 0px; float: left;margin-top:10px;margin-left:10px"><strong>详细信息</strong></h3>
                        <div class="buttons pull-right"style="margin-right:2%">


                            <button type="button" id="btnSyspartUpdate" class="btn btn-success btn-labeled " style="margin-top: 5px;" data-bind="click: $root.updateNode">
                                <span class="btn-label"><i class="fa fa-save"></i>
                                </span>保存</button>

                        </div>
                    </div>

                    <div style="clear: both;" />


                    <div class='form-group'>
                        <label class='col-md-2 control-label' style='margin-bottom: 3px;'>部门名:</label>
                        <div class='col-md-9'>
                            <input type='text' id='txtbSPartName' name='txtbSPartName' placeholder='' class='form-control' data-bind='value:SPartName' />                            
                        </div>

                    </div>
                    <div class='form-group'>
                        <label class='col-md-2 control-label' style='margin-bottom: 3px;'>类型:</label><div class='col-md-9'>
                            <input type='text' id='txtbIType' name='txtbIType' placeholder='' class='form-control' data-bind='value:IType' />
                        </div>
                    </div>
                    <div class='form-group'>
                        <label class='col-md-2 control-label' style='margin-bottom: 3px;'>部门描述:</label><div class='col-md-9'>
                            <textarea id='txtbSScript' name='txtbSScript' placeholder='' class='form-control' data-bind='value:SScript'> </textarea>
                        </div>
                    </div>


                    <input type='hidden' disabled="disabled" id='txtbIParentId' name='txtbIParentId' placeholder='' class='form-control' data-bind='value:IParentId' />

                    <div class='form-group'>
                        <label class='col-md-2 control-label' style='margin-bottom: 3px;'>备注:</label><div class='col-md-9'>
                            <input type='text' id='txtbSMemo' name='txtbSMemo' placeholder='' class='form-control' data-bind='value:SMemo' />
                        </div>
                    </div>

                     <input type='hidden' id='txtbIOwer' name='txtbIOwer' placeholder='' class='form-control' data-bind='value:IOwer' />
               
                    <div class='form-group'>
                        <label class='col-md-2 control-label' style='margin-bottom: 3px;'>是否临时:</label><div class='col-md-9'>
                            <input type='text' id='txtbIIsTmp' name='txtbIIsTmp' placeholder='' class='form-control' data-bind='value:IIsTmp' />
                        </div>
                    </div>


                    <input type='hidden' id='txtbILevel' name='txtbILevel' placeholder='' class='form-control' data-bind='value:ILevel' />

                </fieldset>

            </form>



        </div>
    </div>


</div>
</div>
<script>

   


    pageSetUp();
    var pagefunction = function () {

        
        loadScript("/PageJs/Parts.js", function () {
            
        });      
    };
    
   
    


    pagefunction();

    
    
</script>

